<?php
App::uses('AppModel', 'Model');
App::import('Model','Post');
/**
 * Parameter Model
 *
 */
class Parameter extends AppModel {
/**
 * Display field
 *
 * @var string
 */
	public $displayField = 'description';

	public function getPostTypes(){
		$types = $this->find('list',
										array('fields'				=> array('value', 'description'),
										      'conditions' 		=> array('type' => Post::rtype, 'object' => 'Post')
													));
		return $types;
	}

	public function getConsultTopics(){
		$topics = $this->find('list',
										array('fields'				=> array('value', 'description'),
										      'conditions' 		=> array('type' => Post::topic, 'object' => 'Post')
													));
		return $topics;		
	}
}
